"use client";
import { useState } from "react";

export default function DesboardLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  const [count, setCount] = useState(0);

  return (
    <div className="border-2 border-dashed border-black p-4 w-1/2 mx-auto">
      <h2>desboard template</h2>
      <p>count: {count}</p>
      <button onClick={() => setCount(count + 1)}>increment count</button>
      {children}
    </div>
  );
}
